<?php

namespace App\Models\Log;

use App\Models\BaseModel;

/**
 * App\Models\Log\CashLog
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property string $out_trade_no 订单号
 * @property string $operator 操作人
 * @property string $value 涉及金额
 * @property string $before 之前
 * @property string $after 之后
 * @property int $type 操作类型 管理员扣除:-1 管理员充值:0 支付宝充值:1 微信充值:2  购买:11 退款:12 奖励:21 转入:41 转出:42
 * @property string $remake 备注
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
 * @property-read int|null $notifications_count
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog query()
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereAfter($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereBefore($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereOperator($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereOutTradeNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereRemake($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereValue($value)
 * @mixin \Eloquent
 * @property string $remarks 备注
 * @method static \Illuminate\Database\Eloquent\Builder|CashLog whereRemarks($value)
 */
class CashLog extends BaseModel {
	protected $table = 'cash_log';
	protected $primaryKey = 'id';
//	public $timestamps = true;
	protected $fillable = [
		'user_id',
		'out_trade_no',
		'operator',
		'value',
		'before',
		'after',
		'type',
		'remarks',
	];

}
